package handlers

import (
	"fmt"
	"example.com/go-multi-demo/internal/models"
)

// UserHandler 处理用户相关的HTTP请求
type UserHandler struct{}

// GetUser 模拟获取用户信息
func (h *UserHandler) GetUser(id int) {
	user := models.NewUser("李四", 30, "lisi@example.com")
	fmt.Printf("获取用户 ID %d: %s\n", id, user.Name)
}

// CreateUser 模拟创建用户
func (h *UserHandler) CreateUser(name string, age int, email string) {
	user := models.NewUser(name, age, email)
	fmt.Printf("创建用户: %s\n", user.Name)
}